package com.fd.wpx.article.service.impl;

import com.fd.wpx.article.service.ArticleCategoryService;
import com.fd.wpx.blog.mapper.ArticleCategoryMapper;
import com.fd.wpx.blog.pojo.ArticleCategory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ArticleCategoryServiceImpl implements ArticleCategoryService{
    @Autowired
    private ArticleCategoryMapper mapper;
    @Override
    public int addArticleCategory(ArticleCategory item) {
        return mapper.insert(item);
    }

    @Override
    public ArticleCategory findArticleCategoryById(Integer id) {
        return mapper.selectByPrimaryKey(id);
    }
}
